<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!--  创建数据库连接 -->
    <?php
        $con = mysqli_connect('localhost','root','')or die('数据库连接失败');
        mysqli_select_db($con,'member')or die(mysqli_error($con));
        mysqli_query($con,'set NAMES utf8');
    ?>
</body>
</html>